#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    setWindowTitle("LCD 模拟器");
    setWindowFlags(windowFlags()& ~Qt::WindowMaximizeButtonHint);
    //setFixedSize(this->width(), this->height());
    setFixedSize(ui->widget->width(), ui->widget->height());
    adjustSize();
}

MainWindow::~MainWindow()
{
    delete ui;
}

